package com.shiminghui;

import java.util.ArrayList;
import java.util.Scanner;

public class Test4 {

    public static void main(String[] args) {

        ArrayList<Student> arrayList = new ArrayList<>();

        Scanner scanner = new Scanner(System.in);

        for (int i = 0; i < 3; i++) {
            Student student = new Student();
            student.setName(scanner.next());
            student.setGender(scanner.next());
            student.setAge(scanner.nextInt());
            arrayList.add(student);
        }

        for (int i = 0; i < arrayList.size(); i++) {
            Student student2 = arrayList.get(i);
            System.out.println(student2.getName()+","+student2.getGender()+","+student2.getAge());
        }

    }
}
